import request from '@/utils/request'

/**
 * 获取
 * @param {Object} params 
 */
export function GetRecordQueryTree(params) {
  return request({
    url: 'API/RecordReport/GetRecordQueryTree',
    method: 'get',
    params: params,
    successMsg: false,
    failMsg: true
  })
}

// 获取pdf预览地址
export function PreviewUnionElectronicRecordReport(params) {
  return request({
    url: 'API/RecordReport/PreviewUnionElectronicRecordReport',
    method: 'get',
    params: params,
    successMsg: false,
    failMsg: false
  })
}

export function PreviewElectronicRecordReport(params) {
  return request({
    url: 'API/RecordReport/PreviewElectronicRecordReport',
    method: 'get',
    params: params,
    successMsg: false,
    failMsg: false
  })
}

export function GetEquipmentFileSelect(params) {
  return request({
    url: 'API/RecordFile/GetEquipmentFileSelect',
    method: 'get',
    params: params,
    successMsg: false,
    failMsg: false
  })
}

export function GetRecordCorrelationFiles(params) {
  return request({
    url: 'API/RecordFile/GetRecordCorrelationFiles',
    method: 'get',
    params: params,
    successMsg: false,
    failMsg: false
  })
}

export function PreviewRecordCorrelationFile(params) {
  return request({
    url: 'API/RecordFile/PreviewRecordCorrelationFile',
    method: 'get',
    params: params,
    successMsg: false,
    failMsg: false
  })
}